package com.leyou.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leyou.entity.SpuDetail;
import com.leyou.item.dto.SpuDetailDTO;
import com.leyou.mapper.SpuDetailMapper;
import com.leyou.service.SpuDetailService;
import org.springframework.stereotype.Service;

@Service
public class SpuDetailServiceImpl extends ServiceImpl<SpuDetailMapper, SpuDetail> implements SpuDetailService {
    @Override
    public SpuDetailDTO getSpuDetailsById(Long id) {
        SpuDetail spuDetail = getById(id);

        return new SpuDetailDTO(spuDetail);
    }
}